package com.fenyin.samples.study.scf.service;

import com.bj58.spat.scf.server.contract.annotation.ServiceBehavior;
import com.fenyin.study.scf.service.IExceptionService;
import com.fenyin.study.scf.service.InfoAnalyzeException;

@ServiceBehavior
public class ExceptionService implements IExceptionService {

	public long getCountWithDecation() throws Exception {
		throw new IllegalArgumentException("参数异常");
	}

	public long getCountWithoutDecation() {
		throw new IllegalArgumentException("方法请求异常");
	}

	public long getWithDecation() throws InfoAnalyzeException {
		throw new InfoAnalyzeException("参数异常");
	}

	public long getWithoutDecation() {
//		throw new InfoAnalyzeException("方法请求异常");
		return 0;
	}

}
